package edu.sysu.demo.petstore.dog.data.dao;

import edu.sysu.demo.petstore.dog.data.entity.Key;
import edu.sysu.demo.petstore.dog.data.entity.Key.KeyType;
import org.springframework.data.jpa.repository.JpaRepository;

public interface KeyDao extends JpaRepository<Key, Long> {

  Key findByNameAndType(String name, KeyType type);
}
